import { createApp } from 'vue'
import App from './App.vue' 
import router from './router'
import VueEcharts from 'vue-echarts'
import { use } from 'echarts/core'
import { TitleComponent, LegendComponent } from 'echarts/components'
import { PieChart, BarChart } from 'echarts/charts'

const app = createApp(App)

app.use(router)

app.mount('#app')

app.component('v-chart', VueEcharts)

use([TitleComponent, LegendComponent, PieChart, BarChart])
